package main

import (
	"shop/user-srv/proto"
)

import "google.golang.org/grpc"

var userClient proto.UserClient
var conn *grpc.ClientConn

func Init() {
	var err error
	conn, err = grpc.Dial("127.0.0.1:50051", grpc.WithInsecure())
	if err != nil {
		panic("dial to fail: " + err.Error())
	}
	userClient = proto.NewUserClient(conn)
}

func main() {
	Init()

	//fmt.Println("id is :", id)
	conn.Close()

}
